package com.siae.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role")
@Schema(name = "role",description = "用户角色信息")
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Schema(name = "userRole",description = "角色名称")
    @TableField(value = "user_role")
    private String userRole;
    @Schema(name = "addTime",description = "创建时间")
    @TableField(value = "add_time")
    private Date addTime;
    @Schema(name = "updateTime",description = "修改时间")
    @TableField(value = "update_time")
    private Date updateTime;
    @Schema(name = "isDel",description = "逻辑删除 0：未删 1：已删")
    @TableField(value = "is_del")
    private Integer isDel;
}
